﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TEL.TelPhoneF.Controls
{
    public class LineDragDrop
    {
        public int LineNumber { get; private set; }
        public string LineCall { get; private set; }
        public string NumberPhone { get; private set; }

        public LineDragDrop(int lineNumber, string lineCall, string numberPhone)
        {
            LineNumber = lineNumber;
            LineCall = lineCall;
            NumberPhone = numberPhone;
        }

        public static LineDragDrop GetObject(Control sender, DragEventArgs dragData)
        {
            LineDragDrop dragObject = (LineDragDrop)dragData.Data.GetData(typeof(LineDragDrop));
            //if (dragObject != null && dragObject.DragObjectType == MapDragObject.DragObjectTypes.None)
            //    dragObject = null;

            //if (dragObject != null)
            //{
            //    dragObject.EndPoint = sender.PointToClient(new Point(dragData.X, dragData.Y));
            //}

            return dragObject;
        }
    }
}
